package br.ufrj.dcc.smarthotel.activities;

import android.os.Bundle;
import br.ufrj.dcc.smarthotel.R;
import br.ufrj.dcc.smarthotel.controls.RequestServiceControl;
import br.ufrj.dcc.smarthotel.entities.Service;
import br.ufrj.dcc.smarthotel.listeners.RequestServiceClickListener;

public class RequestServiceActivity extends AppActivity {
	private RequestServiceControl control;
	private RequestServiceClickListener listener;
	
	private Service clickedService;
	
	@Override
    public void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);
        
        setContentView(R.layout.serviceslist);
        
        int clickedServiceId = Integer.parseInt(this.getIntent().getExtras().getString("clickedServiceId"));
        
        this.findAllViews();
        
        this.control = new RequestServiceControl(this);
        this.listener = new RequestServiceClickListener(this);
        
        this.control.loadService(clickedServiceId);
    }

	private void findAllViews() {
		
	}

	public void setClickedService(Service clickedServide) {
		this.clickedService = clickedServide;
	}
}
